package com.woniuxy02;

import java.util.Scanner;

public class Test04 {
    public static void main(String[] args) {
        Scanner scanner=new Scanner(System.in);
//        System.out.println("输入一个数");
//        int num = scanner.nextInt();
        int count=0;
        boolean flag;
        for (int num=2;num<=100;num++) {
            flag=true;
            for(int i=2;i<num;i++){
                if(num%i==0){
                    flag=false;
                    break;
                }
            }
            //下结论
            if(flag){
                System.out.print(num+"\t");
                count++;
                if(count%5==0){
                    System.out.println();
                }
            }
        }
    }
}
